package me.numark.activities;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

import me.numark.MainActivity;
import me.numark.R;

public class SplashActivity extends BaseActivity implements Runnable{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        activity_layout_res = R.layout.activity_splash;
        super.onCreate(savedInstanceState);
        Thread thread = new Thread(this);
        thread.start();

    }

    @Override
    public void run() {
        try {
            Thread.sleep(3000);
            Intent intent = new Intent(SplashActivity.this,MainActivity.class);
            startActivity(intent);
            finish();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }




}
